<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <link rel="shortcut icon " type="images/x-icon" href="{{ url_for('static', filename='assets/favicon2.ico') }}">

    <link rel="stylesheet" href="{{ url_for('static', filename='bs3/css/bootstrap.min.css') }}">
    <link rel="stylesheet" href="{{ url_for('static', filename='fa/font-awesome.min.css') }}">
    <link rel="stylesheet" href="{{ url_for('static', filename='resources/toastr.min.css') }}">
    <link rel="stylesheet" href="{{ url_for('static', filename='resources/webview.css') }}">

    <title>{{ title }}</title>
    {% block css%}
    <style type="text/css">
        .container {
            margin-right: 10px;
            margin-left: 10px;
        }

    </style>
    {% endblock %}
</head>

<body>
   
    <nav class="navbar navbar-default  navbar-fixed-top">
        <div class="container-fluid">
            <!-- Brand and toggle get grouped for better mobile display -->
            <div class="navbar-header">
            <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a class="navbar-brand" href="#"> <span class="product"></span>Dashboard</a>
            </div>
        
            <!-- Collect the nav links, forms, and other content for toggling -->
            <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
            <ul class="nav navbar-nav navbar-right">
                <!-- <li class="dashboard"><a href="/dashboard">Dashboard</a></li> -->

                <li role="presentation" class="dropdown">
                    <a class="dropdown-toggle" data-toggle="dropdown" href="#" role="button" aria-haspopup="true" aria-expanded="false">
                    Host <span class="caret"></span>
                    </a>
                    <ul class="dropdown-menu">
                        <li class="pin"><a href="/pin">Pin</a></li>
                        <li class="analog"><a href="/analog">Analog</a></li>
                    </ul>
                </li>

     
            </ul>
            </div><!-- /.navbar-collapse -->
        </div><!-- /.container-fluid -->
    </nav>
    <br><br><br><br>

          
     
    <div class="container-fluid">

    {% block body%} {% endblock %}

    </div>


          
</body>
<script src="{{ url_for('static', filename='bs3/js/jquery.min.js') }}"></script>
<script src="{{ url_for('static', filename='bs3/js/bootstrap.min.js') }}"></script>
<script src="{{ url_for('static', filename='echarts/echarts.min.js') }}"></script>
<script src="{{ url_for('static', filename='resources/holder.min.js') }}"></script>
<script src="{{ url_for('static', filename='resources/toastr.min.js') }}"></script>
<script src="{{ url_for('static', filename='layer/layer.js') }}"></script>

{% block js%} 
<script type="text/javascript">

    function nocontextmenu()
    {
        event.cancelBubble = true
        event.returnValue = false;
        return false;
    }

    function norightclick(e){
        if (window.Event)
        {
            if (e.which == 2 || e.which == 3)
            return false;
        }
        else if (event.button == 2 || event.button == 3)
        {
            event.cancelBubble = true
            event.returnValue = false;
            return false;
        }
    }

    $(document).ready(function(){

        var aid = (window.location.pathname.split("/")[1]).split(".")[0];
        // alert(aid);
        if(aid=="")
            $(".settings").attr('class', 'active');
         else
            $("."+aid).attr('class', 'active');
    });
</script>
{% endblock %}
</html>